#include "uhf_rfid_reader.h"
#include <QApplication>
//#include <QDesktopWidget>

QMutex g_mutex;
list<string> g_msgList;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
   // a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );

    UHF_RFID_Reader *w = new UHF_RFID_Reader;
  //  w.setWindowFlags(w.windowFlags()& ~Qt::WindowMaximizeButtonHint);
  //  w.showMaximized();
  //  w.resize(QApplication::desktop()->availableGeometry().size());
 //   w.setWindowTitle("超频读写器软件");
   // a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );

    w->show();
    a.connect( w, SIGNAL(closeWindow()), &a, SLOT(quit()) );

    int ret = a.exec();
    delete w;

    return ret;
}
